package org.hospital.entity;
// default package

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * BillProject entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="billproject"
    ,catalog="hospital"
)

public class BillProject  implements java.io.Serializable {


    // Fields    

     private BillProjectId id;
     private Integer number;
     private Double price;
     private Double doctorCost;
     private String extraInfo = "null";


    // Constructors

    /** default constructor */
    public BillProject() {
    }

	/** minimal constructor */
    public BillProject(BillProjectId id, Integer number, Double price, Double doctorCost) {
        this.id = id;
        this.number = number;
        this.price = price;
        this.doctorCost = doctorCost;
    }
    
    /** full constructor */
    public BillProject(BillProjectId id, Integer number, Double price, Double doctorCost, String extraInfo) {
        this.id = id;
        this.number = number;
        this.price = price;
        this.doctorCost = doctorCost;
        this.extraInfo = extraInfo;
    }

   
    // Property accessors
    @EmbeddedId
    
    @AttributeOverrides( {
        @AttributeOverride(name="billId", column=@Column(name="billId", nullable=false) ), 
        @AttributeOverride(name="projectId", column=@Column(name="projectId", nullable=false) ) } )

    public BillProjectId getId() {
        return this.id;
    }
    
    public void setId(BillProjectId id) {
        this.id = id;
    }
    
    @Column(name="number", nullable=false)

    public Integer getNumber() {
        return this.number;
    }
    
    public void setNumber(Integer number) {
        this.number = number;
    }
    
    @Column(name="price", nullable=false, precision=22, scale=0)
    public Double getPrice() {
        return this.price;
    }
    
    public void setPrice(Double price) {
        this.price = price;
    }
    
    @Column(name="doctorCost", nullable=false, precision=22, scale=0)
    public Double getDoctorCost() {
        return this.doctorCost;
    }
    
    public void setDoctorCost(Double doctorCost) {
        this.doctorCost = doctorCost;
    }
    
    @Column(name="extraInfo")
    public String getExtraInfo() {
        return this.extraInfo;
    }
    
    public void setExtraInfo(String extraInfo) {
        this.extraInfo = extraInfo;
    }
   








}